﻿2026-08-18T09:53:16.9488520Z ##[group]Run $root = $env:SPT_CI_TEST_TMP
2026-08-18T09:53:16.9488899Z [36;1m$root = $env:SPT_CI_TEST_TMP[0m
2026-08-18T09:53:16.9489190Z [36;1mif ([string]::IsNullOrEmpty($root)) {[0m
2026-08-18T09:53:16.9489645Z [36;1m  Write-Host 'PUMP188_DIAG_SINK_DUMP: SPT_CI_TEST_TMP unset — nothing to search'[0m
2026-08-18T09:53:16.9490050Z [36;1m  exit 0[0m
2026-08-18T09:53:16.9490205Z [36;1m}[0m
2026-08-18T09:53:16.9490490Z [36;1m# The sink now lands in the PROCESS TEMP ROOT (`env::temp_dir()`), not under[0m
2026-08-18T09:53:16.9490821Z [36;1m# `spt_home()` — see the role-B step for the teardown that forced the move.[0m
2026-08-18T09:53:16.9491124Z [36;1m# The env-loss bound moves with it: on Windows `temp_dir()` reads TMP then[0m
2026-08-18T09:53:16.9491418Z [36;1m# TEMP and falls back to the profile/Windows temp, so a child that loses the[0m
2026-08-18T09:53:16.9491712Z [36;1m# inherited block (this is the box where `spawn_detached` is documented to[0m
2026-08-18T09:53:16.9492009Z [36;1m# rebuild it) drops its sink THERE. Those two fallbacks are checked[0m
2026-08-18T09:53:16.9492335Z [36;1m# non-recursively — a -Recurse over the whole profile is not a diagnostic,[0m
2026-08-18T09:53:16.9492647Z [36;1m# it is an outage. The canonical-home arm is retired with the move: the sink[0m
2026-08-18T09:53:16.9492913Z [36;1m# no longer resolves through spt_home(). Read only.[0m
2026-08-18T09:53:16.9493090Z [36;1m$found = 0[0m
2026-08-18T09:53:16.9493321Z [36;1mWrite-Host "PUMP188_DIAG_SINK_DUMP: searching $root (recursive) + TMP/TEMP fallbacks"[0m
2026-08-18T09:53:16.9493763Z [36;1mGet-ChildItem -LiteralPath $root -Filter 'pump188-diag.log' -Recurse -File -ErrorAction SilentlyContinue | ForEach-Object {[0m
2026-08-18T09:53:16.9494094Z [36;1m  $found++[0m
2026-08-18T09:53:16.9494283Z [36;1m  $n = (Get-Content -LiteralPath $_.FullName | Measure-Object -Line).Lines[0m
2026-08-18T09:53:16.9494612Z [36;1m  Write-Host "--- PUMP188_DIAG sink: $($_.FullName) ($n lines) ---"[0m
2026-08-18T09:53:16.9494868Z [36;1m  Get-Content -LiteralPath $_.FullName | Write-Host[0m
2026-08-18T09:53:16.9495043Z [36;1m}[0m
2026-08-18T09:53:16.9495223Z [36;1mforeach ($fb in @($env:USERPROFILE, (Join-Path $env:SystemRoot 'Temp'))) {[0m
2026-08-18T09:53:16.9495609Z [36;1m  if ([string]::IsNullOrEmpty($fb)) { continue }[0m
2026-08-18T09:53:16.9495801Z [36;1m  $p = Join-Path $fb 'pump188-diag.log'[0m
2026-08-18T09:53:16.9495981Z [36;1m  if (Test-Path -LiteralPath $p) {[0m
2026-08-18T09:53:16.9496138Z [36;1m    $found++[0m
2026-08-18T09:53:16.9496475Z [36;1m    $n = (Get-Content -LiteralPath $p | Measure-Object -Line).Lines[0m
2026-08-18T09:53:16.9496806Z [36;1m    Write-Host "--- PUMP188_DIAG sink: $p ($n lines) ---"[0m
2026-08-18T09:53:16.9497042Z [36;1m    Get-Content -LiteralPath $p | Write-Host[0m
2026-08-18T09:53:16.9497211Z [36;1m  }[0m
2026-08-18T09:53:16.9497313Z [36;1m}[0m
2026-08-18T09:53:16.9497519Z [36;1mWrite-Host "PUMP188_DIAG_SINK_DUMP: $found sink file(s) (sandbox + temp fallbacks)"[0m
2026-08-18T09:53:16.9502226Z shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
2026-08-18T09:53:16.9502444Z env:
2026-08-18T09:53:16.9502685Z   SPT_CI_TEST_TMP: C:\actions-runner\_work\_temp\spt-test-tmp-32122237934-1-9ac2f498b6124c7bb6f236509cd1884e
2026-08-18T09:53:16.9503074Z   TEMP: C:\actions-runner\_work\_temp\spt-test-tmp-32122237934-1-9ac2f498b6124c7bb6f236509cd1884e
2026-08-18T09:53:16.9503427Z   TMP: C:\actions-runner\_work\_temp\spt-test-tmp-32122237934-1-9ac2f498b6124c7bb6f236509cd1884e
2026-08-18T09:53:16.9503670Z ##[endgroup]
2026-08-18T09:53:17.1817340Z PUMP188_DIAG_SINK_DUMP: searching C:\actions-runner\_work\_temp\spt-test-tmp-32122237934-1-9ac2f498b6124c7bb6f236509cd1884e (recursive) + TMP/TEMP fallbacks
2026-08-18T09:53:17.2048845Z PUMP188_DIAG_SINK_DUMP: 0 sink file(s) (sandbox + temp fallbacks)
